package com.tt.payee.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

/**
 * @author     ：Tang
 * @date       ：Created in 2020/7/22 15:31
 * @description：${description}
 * @modified By：
 * @version:     $version$
 */
/**
    * 用户表
    */
@Data
@Table(name = "sys_user")
public class SysUser implements Serializable {
    /**
     * 用户id
     */
    @Id
    @Column(name = "`uid`")
    @GeneratedValue(generator = "JDBC")
    private Integer uid;

    /**
     * 用户名/手机号码
     */
    @Column(name = "username")
    private String username;

    /**
     * 登录密码
     */
    @Column(name = "`password`")
    private String password;

    /**
     * 用户真实姓名
     */
    @Column(name = "`name`")
    private String name;

    /**
     * 性别 1位男性 2为女性
     */
    @Column(name = "sex")
    private Integer sex;

    /**
     * 生日
     */
    @Column(name = "birthday")
    private Date birthday;

    /**
     * 所在省市
     */
    @Column(name = "area")
    private String area;

    /**
     * 是否为经纪人 1为是 2为否
     */
    @Column(name = "vip")
    private Integer vip;

    /**
     * 是否是服务工程师 1为是 2为否
     */
    @Column(name = "is_engineer")
    private Integer isEngineer;

    /**
     * 用户积分
     */
    @Column(name = "point")
    private BigDecimal point;

    /**
     * 登录时间
     */
    @Column(name = "logindate")
    private Date logindate;

    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;

    /**
     * 微信  unionid
     */
    @Column(name = "wx_unionid")
    private String wxUnionid;

    /**
     * 微信  openid
     */
    @Column(name = "wx_openid")
    private String wxOpenid;

    /**
     * 微信名称
     */
    @Column(name = "wx_name")
    private String wxName;

    /**
     * 会否第一次登录 1为是 0为不是
     */
    @Column(name = "is_first")
    private Integer isFirst;

    /**
     * 邀请code
     */
    @Column(name = "referral_code")
    private String referralCode;

    /**
     * 上级邀请人code
     */
    @Column(name = "top_referral_code")
    private String topReferralCode;

    /**
     * 邀请次数(每日刷新)
     */
    @Column(name = "referral_num")
    private Integer referralNum;

    /**
     * 邀请成功的数量
     */
    @Column(name = "referral_succeed_num")
    private Integer referralSucceedNum;

    /**
     * 邀请人的手机号码
     */
    @Column(name = "referral_username")
    private String referralUsername;

    /**
     * xxx
     */
    @Column(name = "referral_user")
    private String referralUser;

    /**
     * 注册日期
     */
    @Column(name = "registrydate")
    private Date registrydate;

    /**
     * 登录版本
     */
    @Column(name = "login_version")
    private Integer loginVersion;

    /**
     * 创建时间
     */
    @Column(name = "created")
    private Date created;

    /**
     * 创建人id
     */
    @Column(name = "created_user_id")
    private Long createdUserId;

    /**
     * 创建人姓名
     */
    @Column(name = "created_user_name")
    private String createdUserName;

    /**
     * 最近修改时间
     */
    @Column(name = "updated")
    private Date updated;

    /**
     * 用户状态   1为启用 0为不启用 -1删除
     */
    @Column(name = "`status`")
    private Integer status;

    private static final long serialVersionUID = 1L;
}